.box {
  width: 750px;
  margin: 0 auto;
  background-color: #ddd;
  padding: 20px;
  border-radius: 5px;
  min-height: 100vh;
  // 1 添加按钮
  .btn-box {
    padding: 10px 0;
    button {
      border: none;
      outline: none;
      background-color: #409eff;
      color: #ffffff;
      padding: 8px;
      border-radius: 5px;
      cursor: pointer;
      &:hover {
        background-color: #1f8fff;
      }
    }
  }
  // 2 学生表格
  .students-table {
    border: 1px solid #ffffff;
    width: 100%;
    // 合并表格边框
    border-collapse: collapse;
    font-size: 12px;
    tr {
      border: 1px solid #ffffff;
      th {
        border: 1px solid #ffffff;
        padding: 6px;
      }
      td {
        border: 1px solid #ffffff;
        padding: 6px;
        text-align: center;
      }
      &.t-header {
        background-color: #409eff;
        color: #ffffff;
      }
    }
  }
  // 3 对话框
  .dialog {
    display: none;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.3);
    .form {
      background-color: #fff;
      padding: 20px;
      border-radius: 5px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      .form-item {
        padding: 10px 0;
        display: flex;
        align-items: center;
        label {
          padding: 0 10px;
          width: 50px;
        }
        input[type='text'] {
          border: none;
          border: 1px solid rgba(0, 0, 0, 0.5);
          outline: none;
          padding-left: 10px;
          height: 30px;
          width: 250px;
          border-radius: 5px;
        }
        span {
          padding: 0 10px;
        }
        &.btns {
          justify-content: flex-end;
          div {
            background-color: #409eff;
            color: #ffffff;
            padding: 8px 20px;
            border-radius: 5px;
            margin-left: 10px;
            cursor: pointer;
            font-size: 12px;
            &:hover {
              background-color: #1f8fff;
            }
          }
        }
      }
    }
  }
}
